import { ref} from "vue";
import {defineStore} from "pinia";

export const useChartDataStore = defineStore('chartData', () => {
    const chartId = ref("");
    const genChartResult = ref("");
    const genChartCode = ref("");

    function setChartData(chartData) {
        chartId.value = chartData.value.chartId;
        genChartResult.value = chartData.value.genChartResult;
        genChartCode.value = chartData.value.genChartCode;
    }

    return { chartId, genChartResult ,genChartCode,setChartData}
})